package com.itheima.springbootwebtlias.controller;


import com.itheima.springbootwebtlias.pojo.OperateLogQueryParam;
import com.itheima.springbootwebtlias.pojo.PageResult;
import com.itheima.springbootwebtlias.pojo.Result;
import com.itheima.springbootwebtlias.service.OperateLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/log")
@RestController
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;

    //日志信息统计
    @GetMapping("page")
        public Result page(OperateLogQueryParam queryParam) {
        PageResult pageResult = operateLogService.page(queryParam);

        return Result.success(pageResult);
        }
    }

